<include file="public:top"/>
<link href="__PUBLIC__/bootstrap3.0/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
<script src="__PUBLIC__/bootstrap3.0/js/bootstrap-datetimepicker.min.js"></script>
<div class="container">
	<div class="maincontent">
		<h3>
			<i class="glyphicon glyphicon-book"></i>
			用户信息<small>User information</small>
		</h3>
		<div class='hr'></div>
		<div class="row-space">
			<form role="form" method="post" action="__URL__/update"  enctype="multipart/form-data">
			    <div class="form-group">
			        <label for="u_name">用户名：</label>
			        <input type="text" class="form-control"  id="u_name" name="u_name" placeholder="请填写用户名..." value="{{$user.u_name}}" />
			    </div>
			    <div class="form-group">
			        <label for="u_image">头像：</label>
			        <input type="file" class="form-control"  id="u_image[]" name="u_image[]" placeholder="头像..."/>
			    </div>
			    <div class="form-group">
			        <label for="u_sex">性别：</label>
			        <div>
				        <label class="checkbox-inline">
							<input type="checkbox" id="u_sex" name="u_sex" value="1" <?php echo $user['u_sex'] == 1 ? 'checked' : ''?>> 男
						</label>
						<label class="checkbox-inline">
				     		<input type="checkbox" id="u_sex" name="u_sex" <?php echo $user['u_sex'] == 2 ? 'checked' : ''?> value="2"> 女
						</label>
					</div>
			    </div>
			    <div class="form-group" data-date-format="yyyy-mm-dd">
			        <label for="u_birthday">出生日期：</label>
			        <input type="text" class="form-control"  id="u_birthday" readonly name="u_birthday"  placeholder="请填写出生日期..." value="{{$user.u_birthday|date="Y-m-d",###}}" />
			    </div>
			    <div class="form-group">
		        	<label for="u_telphone">手机号码：</label>
			        <input type="text" class="form-control"  id="u_telphone" name="u_telphone" placeholder="请填写手机号码..." value="{{$user.u_telphone}}"/>
			    </div>
			    <div class="form-group">
			        <label for="u_qq">QQ：</label>
			        <input type="text" class="form-control"  id="u_qq" name="u_qq" placeholder="请填写QQ..." value="{{$user.u_qq}}"/>
			    </div>
			    <div class="form-group">
			        <label for="u_email">邮箱：</label>
			        <input type="text" class="form-control"  id="u_email" name="u_email" placeholder="请填写邮箱..." value="{{$user.u_email}}"/>
			    </div>
			    <div class="form-group" >
			        <label for="u_mingyan">格言：</label>
			        <textarea class="form-control"  id="u_mingyan" name="u_mingyan" placeholder="请填写的格言..." rows='4'>{{$user.u_mingyan}}</textarea>
			    </div>
			    <div class="text-right">
			        <button type="submit" class="btn btn-default">提交修改</button>
			    </div>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript">
$('#u_birthday').datepicker({
	format: 'yyyy-mm-dd',
});
</script> 
<include file="public:footer"/>

